<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/AnadoluBazaarGiris.Master" CodeBehind="UrunDetay2.aspx.cs" Inherits="OnlineAnadolu.UrunDetay2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table>
        <tr>
            <td align="center" colspan="3" rowspan="3" style="height: 602px; width: 409px;">
                <br />
    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="SqlDataSource1"
        Height="50px" Width="412px" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Caption="Urun Detay" OnItemDeleting="DetailsView1_ItemDeleting">
        <Fields>
            <asp:BoundField DataField="user_name" HeaderText="Kullanici Adi" SortExpression="user_name" >
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="name" HeaderText="Urun Adi" SortExpression="name" >
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="description" HeaderText="Tanim" SortExpression="description" >
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="price" HeaderText="Fiyat" SortExpression="price" >
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="productdate" HeaderText="Urun Konus Tarihi" SortExpression="productdate" >
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="deadline" HeaderText="Son Tarih" SortExpression="deadline" >
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:CommandField DeleteText="Bu Kisiye Mesaj Gonder" ShowDeleteButton="True" />
        </Fields>
        <FooterTemplate>
            <asp:Image ID="Image1" runat="server"  ImageUrl='<%# Eval("productimage") %>' Height="400px" Width="400px"/>
        </FooterTemplate>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <EditRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="Gainsboro" />
    </asp:DetailsView>
                &nbsp;
            </td>
        </tr>
        <tr>
        </tr>
        <tr>
        </tr>
    </table>
    <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource2" Width="413px" Height="141px">
    </asp:GridView>
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Bu Kullaniciya Yapilan Yorumlar"
        Width="266px" />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>"
        SelectCommand="SELECT productimage.productimage, users.user_name, products.name, products.description, products.price, products.productdate, products.deadline FROM products INNER JOIN productimage ON products.imageid = productimage.productimageid INNER JOIN users ON products.userid = users.enduserid WHERE (products.productid = @a)">
        <SelectParameters>
            <asp:SessionParameter Name="a" SessionField="idproduct" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>"
       >
       
    </asp:SqlDataSource>
</asp:Content>